<?php echo $this->render('catalog/category/_tab.phtml'); ?>
<div class="body">
<form action="" method="post" enctype="multipart/form-data">
<?php echo $this->form()->hidden('referer', $this->referer) . "\n";?>
	<table class="form">
		<tr>
			<th colspan="2"><?php echo $this->language->load('Category Information');?>:</th>
		</tr>
		<tr>
			<td width="180"><label><?php echo $this->language->load('Parent');?></label></td>
			<td><?php echo $this->partial('include/_categorySelect.phtml', array('name' => 'parent_id', 'selectedId' => $this->row->getParentId()));?></td>
		</tr>
		<tr>
			<td><label><span class="red">*</span> <?php echo $this->language->load('SEO Name');?></label></td>
			<td><?php echo $this->form()->text('ename', $this->row->getEname(),array('size'=>'20', 'maxlength'=>'20'));?><code><?php echo $this->language->load('Between 1~20 characters and construct by [a-zA-Z0-9_-]');?>.</code></td>
		</tr>
		<tr>
			<td><label><span class="red">*</span> <?php echo $this->language->load('Name');?></label></td>
			<td><?php echo $this->form()->text('name', $this->row->getName(),array('size'=>'40', 'maxlength'=>'50'));?><code><?php echo $this->language->load('Between 1~50 characters');?>.</code></td>
		</tr>	
		<tr>
			<td><label><?php echo $this->language->load('Display Order');?></label></td>
			<td><?php echo $this->form()->text('display_order', $this->row->getDisplayOrder(),array('size'=>'10', 'maxlength'=>'10'));?><code><?php echo $this->language->load('Only support for Number');?>.</code></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Image');?></label></td>
			<td><?php echo $this->partial('include/_uploadImageInput.phtml', array('image' => $this->row->getThumb(), 'name' => 'thumb'));?></td>
		</tr>
		<tr>
			<td><label><?php echo $this->language->load('Description');?></label></td>
			<td><?php echo $this->form()->textarea('description', $this->row->getDescription(), array('cols' => '70', 'rows' => '6'));?></td>
		</tr>	
		<tr>
			<td><label><?php echo $this->language->load('Actived');?>?</label></td>
			<td><?php echo $this->form()->select('is_active', $this->row->getIsActive(), array(), array('0' => 'No', '1' => 'Yes'));?></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<button type="submit" name="submit" value="submit"><?php echo $this->language->load('Submit');?></button>
				<?php if($this->row->getId()) { ?>
				<button type="submit" name="delete" value="1" onclick="return confirm('<?php echo $this->language->load('Are you sure to delete');?>?')"><?php echo $this->language->load('Delete');?></button>
				<?php } ?>
			</td>
		</tr>
	</table>
</form>
</div>
